]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/global: Plug a leak
authorAlessandro Bono <alessandro.bono369@gmail.com>
Mon, 29 Jun 2026 11:17:07 +0000 (13:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:49:17 +0000 (18:49 +0200)
global->wm is created with shell_wm_new() which returns a new reference,
but it was never released in shell_global_finalize().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4275>
(cherry picked from commit 39b90e3c43db9d1a610ddf3bec68792423f671a1)

src/shell-global.c

index 443376f776d96e44abdd458db89372954cdc572c..2cf5225bd358ef0077ca39ee89f8b1c078abf41c 100644 (file)
@@ -470,6 +470,7 @@ shell_global_finalize (GObject *object)
   g_clear_object (&global->app_system);
   g_clear_object (&global->app_cache);
   g_clear_object (&global->app_usage);
+  g_clear_object (&global->wm);
 
   g_clear_handle_id (&global->before_paint_id,
                      clutter_threads_remove_repaint_func);